﻿<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title></title>
    <link href="/client/css/base.css" rel="stylesheet" type="text/css" />
    <link href="/client/css/detail.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-1.9.1.min.js" type="text/javascript"></script>
     <script src="../js/ajax-data.js" type="text/javascript"></script>
    <script src="../js/base.js" type="text/javascript"></script>
    <script src="../js/dialog.js" type="text/javascript"></script>
    <style>
        .media-right{float: right;margin: 0 10px 0 0;}
        #myjQuery{background: #000;overflow: hidden;}
        #myjQueryContent DIV{height: auto;width: 100%;}
        #myjQueryContent .smask{z-index: -1;}
        #myjQueryContent IMG{width: 100%;height: auto;border: 0;}
               
        .contents{width:980px; margin-left:auto;margin-right:auto; border:solid 1px #ccc; position:relative;}
        .logo{position:absolute; width:100px; height:100px; left:0px; top:10px;}
        .row{ margin:10px;}
        #title{ font-weight:bold; font-size:16px; height: 40px;text-align: center;line-height: 30px;padding: 12px;}
        #detail{ border-top:solid 1px #ccc; margin:10px;}
        #click{ float:right; margin-right:20px;}
    </style>
    <script>
        //显示微信图片
        function showImg(url) {
            var frameid = 'frameimg' + Math.random();
            window.img = '<img id="img" src=\'' + url + '?' + Math.random() + '\' style="max-width:100%"/><script>window.onload = function() { parent.document.getElementById(\'' + frameid + '\').height = document.getElementById(\'img\').height+\'px\'; }<' + '/script>';
            document.write('<iframe id="' + frameid + '" src="javascript:parent.img;" frameBorder="0" scrolling="no" width="100%"></iframe>');
        }
    </script>
</head>
<body>
<div class="contents">
<div style=" width:600px; text-align:center">
    <input type="button"  value="审核不通过" onclick="check(0)" /> &nbsp; &nbsp; &nbsp; &nbsp;
    <input type="button" value="审核通过" onclick="check(1)" />
</div>
<div class="logo"><img  src="http://wjx.711688.com/client/img/cover.jpg" id="logo" style="height:60px;" /></div>
<div id="title"></div>
<div class="row"><span id="click"></span><span id="date"></span></div>
<div id="detail" style=" min-height:300px;"></div>

<div style="clear:both; width:600px; text-align:center">
    <input type="button"  value="审核不通过" onclick="check(0)" /> &nbsp; &nbsp; &nbsp; &nbsp;
    <input type="button" value="审核通过" onclick="check(1)" />
</div>

</div>
<script>
    $(document).ready(function () {
        load(1);
    });

    var next_id = "";
    function load(page) {
        ajax.getAjax("/admin/Ajax/Article.ashx?detail_filter", "id=" + getUrlArgStr("id"), function (data) {
            $("#title").html(data.item.title);
            $("#click").html(data.item.click)
            $("#date").html(data.item.date)
            $("#logo").attr("src", data.item.logo);
            $("#detail").html(data.item.content)
            next_id = data.item.next_id;
        });
    }

    function check(state) {
        ajax.getAjax("/admin/Ajax/Article.ashx?check", "id=" + getUrlArgStr("id") + "&state=" + state, function (data) {
            if (data.code == "0") {
                window.location.href = "detail_filter.html?id=" + next_id;
            }
        });
    }
</script>
</body>
</html>
